
import 'package:sqflite/sqflite.dart';

class InitDb  {
  static Future<void> initialize() async {
    _initDB();
  }
   static Future<void> _initDB() async {
    await openDatabase("data.db", version: 1, onCreate: (db, version) {
      var res = db.execute(
          'CREATE  TABLE device (id TEXT PRIMARY KEY, name TEXT,status TEXT )');
      return res;
    });
  }
}
